package com.lee.lease.web.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lee.lease.model.entity.GraphInfo;
import com.lee.lease.model.enums.ItemType;
import com.lee.lease.web.app.vo.graph.GraphVo;

import java.util.List;

/**
* @author liubo
* @description 针对表【graph_info(图片信息表)】的数据库操作Mapper
* @createDate 2023-07-26 11:12:39
* @Entity com.atguigu.lease.model.entity.GraphInfo
*/
public interface GraphInfoMapper extends BaseMapper<GraphInfo> {

    /**
     * 根据对象id查询图片
     * @param apartment 对象类型 1 是公寓 , 2是房间
     * @param id 对象id
     * @return
     */
    List<GraphVo> findGraphVoList(ItemType apartment, Long id);
    List<GraphVo> findGraphByRoomId(Integer id);
    List<GraphVo> findGraphVoByApartmentId( Long id);

    List<GraphVo> getApartmentGraphVoList(ItemType apartment, Long apartmentId);

    List<GraphVo> getRoomGraphVoList(ItemType room, Long roomId);
}




